<%-- 
    Document   : principalConfiguracion
    Created on : 05/12/2010, 12:42:00 AM
    Author     : Rafael
--%>


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<script type="text/javascript" src="Modulo3/js/sha.js"></script>

<div style="clear: both;">&nbsp;</div>
<center>`
    <img alt=""  src="style/images/modulo4/mainConfiguracion.png"/>
</center>
<div style="clear: both;">&nbsp;</div>
<script type="text/javascript">
    $(function(){
<%
    String user = (String) session.getAttribute("user");
    if (user == null) {%>
        // No hay un usuario conectado
        //alert("user (must be null): <%--out.print(user); --%>");
        $('#userInfo').html("");
        $('.userAction').html('Login').attr('id', 'login');
<% } else {%>
    // Hay un usuario conectado
    //alert("connected user: <%-- out.print(user); --%>");
    $('#userInfo').html('<% out.print(user + "      |  ");%>');
    $('.userAction').html('Logout').attr('id', 'logout');
<% }%>
    });
</script>